package com.jbit.examSystem.dao;

import com.jbit.examSystem.pojo.Exam;
import com.jbit.examSystem.pojo.ExamAdd;
import org.apache.ibatis.annotations.Param;
import com.jbit.examSystem.param.ExamSearchParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamDao {
    List<Exam> list(ExamSearchParam param);

    List<Exam> getExamNameByClassId(@Param("classId") Integer classId);

    Integer addExam(Exam exam);

    List<Exam> getExamByClassId(@Param("classId") Integer classId);

    Exam getExamById(@Param("examId") Integer examId);

    void addExamClass(@Param("classId") Integer classId,@Param("examId") Integer examId);
}
